home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / windownt / ibmsyn.zip / SEMFISEL.H < prev    next >
Text File  |  1993-01-18  |  7KB  |  294 lines

  1. /*++
  2.  
  3.  Copyright Data Connection Ltd. 1992
  4.  
  5.  semfisel.mc
  6.  
  7.  NT IBM SDLC Device Driver: Error Logging Strings
  8.  
  9. --*/
  10.  
  11. //
  12. //  Values are 32 bit values layed out as follows:
  13. //
  14. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  15. //   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  16. //  +---+-+-+-----------------------+-------------------------------+
  17. //  |Sev|C|R|     Facility          |               Code            |
  18. //  +---+-+-+-----------------------+-------------------------------+
  19. //
  20. //  where
  21. //
  22. //      Sev - is the severity code
  23. //
  24. //          00 - Success
  25. //          01 - Informational
  26. //          10 - Warning
  27. //          11 - Error
  28. //
  29. //      C - is the Customer code flag
  30. //
  31. //      R - is a reserved bit
  32. //
  33. //      Facility - is the facility code
  34. //
  35. //      Code - is the facility's status code
  36. //
  37. //
  38. // Define the facility codes
  39. //
  40. #define FACILITY_IO_ERROR_CODE           0x0
  41.  
  42.  
  43. //
  44. // Define the severity codes
  45. //
  46. #define STATUS_SEVERITY_WARNING          0x2
  47. #define STATUS_SEVERITY_INFORMATIONAL    0x1
  48. #define STATUS_SEVERITY_ERROR            0x0
  49.  
  50.  
  51. //
  52. // MessageId: IO_ERR_HARDWARE_INIT_FAILURE
  53. //
  54. // MessageText:
  55. //
  56. //  An error occurred while setting up the default link characteristics.
  57. //
  58. #define IO_ERR_HARDWARE_INIT_FAILURE     0x00000001L
  59.  
  60. //
  61. // MessageId: IO_ERR_CANT_CONNECT_INTERRUPT_1
  62. //
  63. // MessageText:
  64. //
  65. //  The driver could not connect the required interrupt.
  66. //
  67. #define IO_ERR_CANT_CONNECT_INTERRUPT_1  0x00000002L
  68.  
  69. //
  70. // MessageId: IO_ERR_CANT_CONNECT_INTERRUPT_2
  71. //
  72. // MessageText:
  73. //
  74. //  The driver could not connect the second required interrupt.
  75. //
  76. #define IO_ERR_CANT_CONNECT_INTERRUPT_2  0x00000003L
  77.  
  78. //
  79. // MessageId: IO_ERR_SET_EVENT_NO_EVENT
  80. //
  81. // MessageText:
  82. //
  83. //  The event semaphore given to the driver is null.
  84. //
  85. #define IO_ERR_SET_EVENT_NO_EVENT        0x00000004L
  86.  
  87. //
  88. // MessageId: IO_ERR_HARDWARE_CMD_TIMEOUT_1
  89. //
  90. // MessageText:
  91. //
  92. //  Hardware Error (1) - the 8273 did not respond to a command sequence within the required time while setting V24 output status.
  93. //
  94. #define IO_ERR_HARDWARE_CMD_TIMEOUT_1    0x00000005L
  95.  
  96. //
  97. // MessageId: IO_ERR_HARDWARE_CMD_TIMEOUT_2
  98. //
  99. // MessageText:
  100. //
  101. //  Hardware Error (2) - the 8273 did not respond to a command sequence within the required time.
  102. //
  103. #define IO_ERR_HARDWARE_CMD_TIMEOUT_2    0x00000006L
  104.  
  105. //
  106. // MessageId: IO_ERR_HARDWARE_CMD_TIMEOUT_3
  107. //
  108. // MessageText:
  109. //
  110. //  Hardware Error (3) - the 8273 did not respond to a command sequence within the required time while initialising the adapter.
  111. //
  112. #define IO_ERR_HARDWARE_CMD_TIMEOUT_3    0x00000007L
  113.  
  114. //
  115. // MessageId: IO_ERR_HARDWARE_CMD_TIMEOUT_4
  116. //
  117. // MessageText:
  118. //
  119. //  Hardware Error (4) - the 8273 did not respond to a command sequence within the required time while initialising the adapter.
  120. //
  121. #define IO_ERR_HARDWARE_CMD_TIMEOUT_4    0x00000008L
  122.  
  123. //
  124. // MessageId: IO_ERR_LINKCHAR_BUF_WRONG_SIZE
  125. //
  126. // MessageText:
  127. //
  128. //  The given link characteristics buffer is the wrong size.
  129. //
  130. #define IO_ERR_LINKCHAR_BUF_WRONG_SIZE   0x00000009L
  131.  
  132. //
  133. // MessageId: IO_ERR_FRAME_BUF_TOO_BIG
  134. //
  135. // MessageText:
  136. //
  137. //  The given SDLC frame size is too large.
  138. //
  139. #define IO_ERR_FRAME_BUF_TOO_BIG         0x0000000AL
  140.  
  141. //
  142. // MessageId: IO_ERR_FRAME_BUF_TOO_SMALL
  143. //
  144. // MessageText:
  145. //
  146. //  The given SDLC frame size is too small.
  147. //
  148. #define IO_ERR_FRAME_BUF_TOO_SMALL       0x0000000BL
  149.  
  150. //
  151. // MessageId: IO_ERR_NO_CLOCKS
  152. //
  153. // MessageText:
  154. //
  155. //  Invalid request - internal clocks are not supported by these adapters.
  156. //
  157. #define IO_ERR_NO_CLOCKS                 0x0000000CL
  158.  
  159. //
  160. // MessageId: IO_ERR_CANT_ALLOCATE_MDL
  161. //
  162. // MessageText:
  163. //
  164. //  The driver could not allocate an MDL for the DMA buffer.
  165. //
  166. #define IO_ERR_CANT_ALLOCATE_MDL         0x0000000DL
  167.  
  168. //
  169. // MessageId: IO_ERR_CANT_ALLOCATE_MEMORY
  170. //
  171. // MessageText:
  172. //
  173. //  The driver could not allocate contiguous memory for DMA.
  174. //
  175. #define IO_ERR_CANT_ALLOCATE_MEMORY      0x0000000EL
  176.  
  177. //
  178. // MessageId: IO_ERR_DMA_BUFFER_UNUSABLE
  179. //
  180. // MessageText:
  181. //
  182. //  The driver could not use the allocated DMA buffer as it crosses a 64K boundary.
  183. //
  184. #define IO_ERR_DMA_BUFFER_UNUSABLE       0x0000000FL
  185.  
  186. //
  187. // MessageId: IO_ERR_TX_BUFFER_FULL
  188. //
  189. // MessageText:
  190. //
  191. //  The Link Service has attempted to transmit a frame that will not currently fit into the driver's buffer.
  192. //
  193. #define IO_ERR_TX_BUFFER_FULL            0x00000010L
  194.  
  195. //
  196. // MessageId: IO_ERR_TX_FRAME_TOO_BIG
  197. //
  198. // MessageText:
  199. //
  200. //  The given transmit frame size is too large.
  201. //
  202. #define IO_ERR_TX_FRAME_TOO_BIG          0x00000011L
  203.  
  204. //
  205. // MessageId: IO_ERR_TX_FRAME_TOO_SMALL
  206. //
  207. // MessageText:
  208. //
  209. //  The given transmit frame size is too small - the minimum frame size is 2.
  210. //
  211. #define IO_ERR_TX_FRAME_TOO_SMALL        0x00000012L
  212.  
  213. //
  214. // MessageId: IO_ERR_READ_IR_BUFFER_WRONG_SIZE
  215. //
  216. // MessageText:
  217. //
  218. //  The read buffer given to the Read Interface Record call is the wrong size.
  219. //
  220. #define IO_ERR_READ_IR_BUFFER_WRONG_SIZE 0x00000013L
  221.  
  222. //
  223. // MessageId: IO_ERR_NEEDS_MCA_BUS
  224. //
  225. // MessageText:
  226. //
  227. //  This type of Adapter needs a MCA bus.
  228. //
  229. #define IO_ERR_NEEDS_MCA_BUS             0x00000014L
  230.  
  231. //
  232. // MessageId: IO_ERR_NEEDS_ISA_BUS
  233. //
  234. // MessageText:
  235. //
  236. //  This type of Adapter needs an Isa or Eisa bus.
  237. //
  238. #define IO_ERR_NEEDS_ISA_BUS             0x00000015L
  239.  
  240. //
  241. // MessageId: IO_ERR_GET_IF_TYPE_1
  242. //
  243. // MessageText:
  244. //
  245. //  Memory shortage (1) - the driver could not allocate a pool for a Registry Path buffer.
  246. //
  247. #define IO_ERR_GET_IF_TYPE_1             0x00000016L
  248.  
  249. //
  250. // MessageId: IO_ERR_GET_IF_TYPE_2
  251. //
  252. // MessageText:
  253. //
  254. //  Memory shortage (2) - the driver could not allocate a pool for a Registry Path buffer.
  255. //
  256. #define IO_ERR_GET_IF_TYPE_2             0x00000017L
  257.  
  258. //
  259. // MessageId: IO_ERR_GET_IF_TYPE_3
  260. //
  261. // MessageText:
  262. //
  263. //  Memory shortage (3) - the driver could not allocate a pool for a Registry Path buffer.
  264. //
  265. #define IO_ERR_GET_IF_TYPE_3             0x00000018L
  266.  
  267. //
  268. // MessageId: IO_ERR_GET_IF_TYPE_4
  269. //
  270. // MessageText:
  271. //
  272. //  The driver could not query the Registry for the Bus type.
  273. //
  274. #define IO_ERR_GET_IF_TYPE_4             0x00000019L
  275.  
  276. //
  277. // MessageId: IO_ERR_INVALID_IOCTL_CODE
  278. //
  279. // MessageText:
  280. //
  281. //  The driver does not recognise this IO control code.
  282. //
  283. #define IO_ERR_INVALID_IOCTL_CODE        0x0000001AL
  284.  
  285. //
  286. // MessageId: IO_ERR_NO_DMA_FDX
  287. //
  288. // MessageText:
  289. //
  290. //  The 8273 cannot support the requested full-duplex DMA transfer mode.
  291. //
  292. #define IO_ERR_NO_DMA_FDX                0x8000001BL
  293.  
  294.